import service from "@/utils/service.js";

export const routerList = (id,type) => {
	if(type === 'admin'){
		return service({
			method: "GET",
			url: "/api/router/list",
			params:id
		});
	}else{
		return service({
			method: "GET",
			url: "/api/router/studentList",
			params:id
		});
	}
	
};
// 管理员登录
export const pageLogin = param => {
	console.log(param);
	// get | post | put | delete
	return service({
		method: "GET",
		url: "/api/Adminlogin",
		params: { ...param }
	});
};
// 学生登录
export const studentLogin = param => {
	return service({
		method: "GET",
		url: "/api/loginStudent",
		params: { ...param }
	});
};
export const getAuthButton = ({...info}) => {
	return service({
		method: "GET",
		url: "/api/auth/button",
		params:info
	});
};
